package com.book.scc.service;

import com.book.scc.mapper.UserMapper;
import com.book.scc.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User login(String username, String password) {
        System.out.println("service层"+username+"..."+password);
        return userMapper.login(username,password);
    }

//    public User login(String username, String password) {
//        System.out.println("service层"+username+"..."+password);
//        return userMapper.login(username,password);
//    }
}
